/**
 * 
 */
package com.et114.modules.org.vo;

import com.et114.components.acegi.Constants;

import java.util.List;
import java.util.ArrayList;

/**
 * @author guanhw
 */
public class FunctionVo extends OrgBaseVo implements IResource  {
	private static final long	serialVersionUID	= - 4033478628616928438L;
	private Long funcId ; 
	private String funcCode ;
	private Long ffuncId ;
	private Long funcNo ; 
	private String funcChn ; 
	private String funcDesc ;
	private String url ; 
	private String imgPath ;
	private boolean leaf ;
	private boolean workFlg;
	private String path ;
	private String secureUrl ;
	private FunctionVo parent = null ;
	private List attachs = new ArrayList () ;
	private List childrens = new ArrayList () ;
	private List roles = new ArrayList() ; 
	private List users = new ArrayList();
	private List titles = new ArrayList();
	
	
	//extends properties
	private java.util.Date authDate ;
	private byte roleType ; 
	private String roleName ;
	private String[] funcids;
	
	
	public String [ ] getFuncids ( ) {
		return funcids;
	}

	public void setFuncids ( String [ ] funcids ) {
		this.funcids = funcids;
	}
	
	public FunctionVo ( ) {
		// TODO Auto-generated constructor stub
	}
	
	public FunctionVo ( Long funcId ) {
		this.funcId = funcId ;
	}
	public FunctionVo ( Long funcId , Long  ffuncId ) {
		this.funcId = funcId ;
		this.ffuncId = ffuncId ;
	}
	public Long getFuncId ( ) {
		return funcId;
	}
	public void setFuncId ( Long funcId ) {
		this.funcId = funcId;
	}
	public String getFuncCode ( ) {
		return funcCode;
	}
	public void setFuncCode ( String funcCode ) {
		this.funcCode = funcCode;
	}
	public Long getFfuncId ( ) {
		return ffuncId;
	}
	public void setFfuncId ( Long ffuncId ) {
		this.ffuncId = ffuncId;
	}
	public Long getFuncNo ( ) {
		return funcNo;
	}
	public void setFuncNo ( Long funcNo ) {
		this.funcNo = funcNo;
	}
	public String getFuncChn ( ) {
		return funcChn;
	}
	public void setFuncChn ( String funcChn ) {
		this.funcChn = funcChn;
	}
	public String getFuncDesc ( ) {
		return funcDesc;
	}
	public void setFuncDesc ( String funcDesc ) {
		this.funcDesc = funcDesc;
	}
	public String getUrl ( ) {
		return url;
	}
	public void setUrl ( String url ) {
		this.url = url;
	}
	public FunctionVo getParent ( ) {
		return parent;
	}
	public void setParent ( FunctionVo parent ) {
		this.parent = parent;
	}
	public List getChildrens ( ) {
		return childrens;
	}
	public void setChildrens ( List childrens ) {
		this.childrens = childrens;
	}
	public List getRoles ( ) {
		return roles;
	}
	public void setRoles ( List roles ) {
		this.roles = roles;
	}
	public List getUsers ( ) {
		return users;
	}
	public void setUsers ( List users ) {
		this.users = users;
	}
	public List getTitles ( ) {
		return titles;
	}
	public void setTitles ( List titles ) {
		this.titles = titles;
	}
	public String getImgPath ( ) {
		return imgPath;
	}
	public void setImgPath ( String imgPath ) {
		this.imgPath = imgPath;
	}
	public boolean isLeaf ( ) {
		return leaf;
	}
	public void setLeaf ( boolean leaf ) {
		this.leaf = leaf;
	}
	public String getPath ( ) {
		return path;
	}
	public void setPath ( String path ) {
		this.path = path;
	}
	public java.util.Date getAuthDate ( ) {
		return authDate;
	}
	public void setAuthDate ( java.util.Date authDate ) {
		this.authDate = authDate;
	}
	public boolean isWorkFlg ( ) {
		return workFlg;
	}
	public void setWorkFlg ( boolean workFlg ) {
		this.workFlg = workFlg;
	}
	public String getSecureUrl ( ) {
		return secureUrl;
	}
	public void setSecureUrl ( String secureUrl ) {
		this.secureUrl = secureUrl;
	}
	public List getAttachs ( ) {
		return attachs;
	}
	public void setAttachs ( List attachs ) {
		this.attachs = attachs;
	}
	public byte getRoleType ( ) {
		return roleType;
	}
	public void setRoleType ( byte roleType ) {
		this.roleType = roleType;
	}
	public String getRoleName ( ) {
		return roleName;
	}

	public void setRoleName ( String roleName ) {
		this.roleName = roleName;
	}
	/////////////
	public String getResString ( ) {
		// TODO Auto-generated method stub
		return secureUrl ; 
	}
	public String getResType ( ) {
		// TODO Auto-generated method stub
		return Constants.RESOURCE_URL ;
	}

	public String getResName ( ) {
		// TODO Auto-generated method stub
		return getFuncChn ( ) ; 
	}

}
